import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);

import axios from "axios";
import VueAxios from "vue-axios";
axios.defaults.baseURL = 'http://176.19.26.136:3000'
Vue.use(VueAxios, axios);

import MintUI from "mint-ui";
import "mint-ui/lib/style.css";
Vue.use(MintUI);

import { Tabbar, TabItem } from "mint-ui";
Vue.component(Tabbar.name, Tabbar);
Vue.component(TabItem.name, TabItem);
/*
import VueSocketIO from "vue-socket.io";
import SocketIO from "socket.io-client";
// socket 连接参数
const socketOptions = {
  autoConnect: true, // 是否⾃动连接 如果为false在指定情况下⼿动触发才连接socket，（
  path: "/phone", // 定义socket后⾯的路径，不写默认路径为/socket.io
};
Vue.use(
  new VueSocketIO({
    debug: true, // debug 调试，⽣产关闭
    connection: SocketIO("http://127.0.0.1:3000/phone", socketOptions),
  })
);*/

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount("#app");
